package com.xx.account.mapper;

import java.util.List;

import com.xx.account.domain.AccountRecord;
import com.xx.account.domain.AccountSendLeaflet;
import org.apache.ibatis.annotations.Param;

/**
 * 分配订单Mapper接口
 *
 * @author ruoyi
 * @date 2024-09-29
 */
public interface AccountSendLeafletMapper
{
    /**
     * 查询分配订单
     *
     * @param id 分配订单主键
     * @return 分配订单
     */
    public AccountSendLeaflet selectAccountSendLeafletById(String id);

    /**
     * 根据订单id和投手id查询分配信息
     *
     * @param recordId 分配订单主键
     * @return 分配订单
     */
    public int selectAccountSendLeafletByRecordIdAndWorkerId(@Param("id") String id,
                                                             @Param("recordId") String recordId,
                                                             @Param("workerId") String workerId);

    /**
     * 查询分配订单列表
     *
     * @param accountSendLeaflet 分配订单
     * @return 分配订单集合
     */
    public List<AccountSendLeaflet> selectAccountSendLeafletList(AccountSendLeaflet accountSendLeaflet);

    /**
     * 新增分配订单
     *
     * @param accountSendLeaflet 分配订单
     * @return 结果
     */
    public int insertAccountSendLeaflet(AccountSendLeaflet accountSendLeaflet);

    /**
     * 修改分配订单
     *
     * @param accountSendLeaflet 分配订单
     * @return 结果
     */
    public int updateAccountSendLeaflet(AccountSendLeaflet accountSendLeaflet);

    /**
     * 删除分配订单
     *
     * @param recordId 分配订单主键
     * @return 结果
     */
    public int deleteAccountSendLeafletByIds(String[] recordId);

    /**
     * 批量删除分配订单
     *
     * @param recordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAccountSendLeafletByRecordIds(String[] recordIds);

    public List<AccountSendLeaflet> selectAllAccountSendLeafletByRecordId(String recordId);

    List<AccountSendLeaflet> selectAllByWorkerId(String workerId);
}
